/**
 * Copyright (c) 2011 Alessandro Camillo'.
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 *
 */

#ifndef _VWSGSENSOR_H_
#define _VWSGSENSOR_H_

#define VWSG_USE_TIMEOUT

enum {
	VWSG_BOARD_CMD_BUFFER_SIZE		= 10,
	VWSG_RESET_BOARD		  = 'R',
	VWSG_GET_SAMPLING		  = 'G',
	
	VWSG_END_CMD_TOKEN		= 13,

	VWSG_CHANNEL					= '1',
	VWSG_SAMPLE_SIZE 			= 4,
};

enum {
	VWSG_RESET_BOARD_SIZE = 1,
	VWSG_GET_SAMPLING_SIZE = 2,
};

enum {
	VWSG_BOARD_OFF = 0,
	VWSG_BOARD_ON = 1,
	VWSG_BOARD_SAMPLING = 3,
	VWSG_BOARD_DATA_READY = 4,
};

#define VWSG_TIMEOUT			50000u
#define VWSG_STARTUP_TIME		500u

#define VWSG_BUFFER_SIZE		100

#endif
